package C10_6_ReplaceParameterWithExplicitMethods;

/**
 * 以明确函数取代参数
 **/
public class ReplaceParameterWithExplicitMethods {
    void setValue(String name, String value) {
        if ("height".equals(name)) {
            String height = value;
        }
        if ("weight".equals(name)) {
            String weight = value;
        }
    }

    void setHeight(String value) {
        String height = value;
    }

    void setWeight(String value) {
        String weight = value;
    }

}
